package jaux.tank.bean.entity.system;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created  on 2018/4/2 0002.
 *
 */
@Entity
@Table(name = "t_sys_login_log")
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginLog extends EntityWithObjectId{
	
	@Basic
	@Column(name = "logname")
    private String logname;
	@Basic
	@Column(name = "userid", length = 40)
    private String userid;
	@Basic
	@Column(name = "createtime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;
	@Basic
	@Column(name = "succeed")
    private String succeed;
	@Lob
	@Column(length = 65535)
    private String message;
	@Basic
	@Column(name = "ip")
    private String ip;
	@Lob
	@Column(length = 512, name = "user_agent")
    private String userAgent;
    

}
